package com.fingard.dsp.bank.reqrespobj.frgcurrsingle;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.frgcurrsingle.detail.CJQryFrgCurrSingleDetail;
import com.fingard.xml.XmlTextReader;

/**
 * 单笔合批状态查询ATS请求
 */
public class ReqQryCJFrgCurrSingleBat extends RequestBase {

    public String totalNum = "";//总笔数

    private XmlTextReader xmlReader;

    public ReqQryCJFrgCurrSingleBat(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception{
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        totalNum = xmlReader.getSimpleText("TotalNum");
    }

    public CJQryFrgCurrSingleDetail readedDetail;

    public boolean readRecord() throws Exception{
        readedDetail = null;
        if(xmlReader.read(PATH_Detail)){
            readedDetail = new CJQryFrgCurrSingleDetail(xmlReader.readedXElement);
            return true;
        }
        else{
            return false;
        }
    }
}
